home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / locale / old / README < prev   
Encoding:
Text File  |  1993-03-10  |  1.2 KB  |  32 lines

  1.  
  2. Hi, Matt.
  3.  
  4. Here are two programs, howing two different methods.  The first is
  5. helloworld.c,  modified to show use of external strings as well as internal.
  6.  
  7. the MSG_ defines will be defined automatically by DICE, during
  8. its 'make .cd file pass'.  You're going to have to have such a pass, to
  9. give the user a chance to remove strings that should not be localized.
  10.  
  11. Then, something is going to have to take that .cd file, and order the
  12. strings according to the MSG_ defines.    I'm using catcomp to do this.
  13.  
  14. We need to have those defines at some point;  those defines are the
  15. relationship between the strings built into the program and the strings
  16. in the catalog.
  17.  
  18.  
  19. The idea of reading all the strings from the catalog directly to make
  20. the dice string table (rather than use the block method above) has
  21. two problems:  1) the IFF spec for the catalog file has not been
  22. released/documented as far as I know.  and 2) the string numbers
  23. are not contiguous.  So we can't just loop on a catalog in general
  24. and pull the strings out.  If we remove the ability for the user to
  25. specify message number ranges of his/her own, we can use GetCatalogStr()
  26. for DICE to build its table.  (this is shown in hello.c).  But I don't
  27. think the limitation is acceptable.
  28.  
  29.  
  30.             andy
  31.  
  32.